export function clearEmptyParam(data: any) {
	const res = { ...data }
	for (const key in res) {
		const val: any = res[key]
		if (val === undefined || val === '' || val === null || (Array.isArray(val) && !val.length)) {
			delete res[key]
		}
	}
	return res
}
